{smcl}
{txt}{sf}{ul off}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e26.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 14:19:19
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "lottery.dta"
{txt}
{com}. 
. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(15 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-451.69716}  
Iteration 1:{space 3}log likelihood = {res:-451.69716}  

Structural equation model{col 49}Number of obs{col 67}= {res}       289
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-451.69716

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3613331{col 26}{space 2} .0634841{col 37}{space 1}    5.69{col 46}{space 3}0.000{col 54}{space 4} .2369065{col 67}{space 3} .4857597
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0333432{col 26}{space 2} .0377261{col 37}{space 1}    0.88{col 46}{space 3}0.377{col 54}{space 4}-.0405986{col 67}{space 3} .1072851
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3214226{col 26}{space 2} .0411656{col 37}{space 1}    7.81{col 46}{space 3}0.000{col 54}{space 4} .2407396{col 67}{space 3} .4021056
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3462946{col 26}{space 2} .0327411{col 37}{space 1}   10.58{col 46}{space 3}0.000{col 54}{space 4} .2821232{col 67}{space 3} .4104661
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1304014{col 26}{space 2} .0341045{col 37}{space 1}   -3.82{col 46}{space 3}0.000{col 54}{space 4} -.197245{col 67}{space 3}-.0635578
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1763231{col 26}{space 2} .0367062{col 37}{space 1}    4.80{col 46}{space 3}0.000{col 54}{space 4} .1043802{col 67}{space 3} .2482659
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .364499{col 26}{space 2} .0214626{col 37}{space 1}   16.98{col 46}{space 3}0.000{col 54}{space 4} .3224332{col 67}{space 3} .4065649
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0862172{col 26}{space 2} .0071723{col 54}{space 4} .0732459{col 67}{space 3} .1014856
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0740228{col 26}{space 2} .0061579{col 54}{space 4} .0628861{col 67}{space 3} .0871317
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       289{col 27}        .{col 38}-451.6972{col 49}     9{col 58} 921.3943{col 69} 954.3922
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3613331{col 26}{space 2} .0634841{col 37}{space 1}    5.69{col 46}{space 3}0.000{col 54}{space 4} .2369065{col 67}{space 3} .4857597
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0333432{col 26}{space 2} .0377261{col 37}{space 1}    0.88{col 46}{space 3}0.377{col 54}{space 4}-.0405986{col 67}{space 3} .1072851
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3214226{col 26}{space 2} .0411656{col 37}{space 1}    7.81{col 46}{space 3}0.000{col 54}{space 4} .2407396{col 67}{space 3} .4021056
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1304014{col 26}{space 2} .0341045{col 37}{space 1}   -3.82{col 46}{space 3}0.000{col 54}{space 4} -.197245{col 67}{space 3}-.0635578
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1763231{col 26}{space 2} .0367062{col 37}{space 1}    4.80{col 46}{space 3}0.000{col 54}{space 4} .1043802{col 67}{space 3} .2482659
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2}-.0471183{col 26}{space 2} .0148456{col 37}{space 1}   -3.17{col 46}{space 3}0.002{col 54}{space 4}-.0762151{col 67}{space 3}-.0180216
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0637114{col 26}{space 2} .0173554{col 37}{space 1}    3.67{col 46}{space 3}0.000{col 54}{space 4} .0296953{col 67}{space 3} .0977274
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .3613331{col 26}{space 2} .0634841{col 37}{space 1}    5.69{col 46}{space 3}0.000{col 54}{space 4} .2369065{col 67}{space 3} .4857597
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0137751{col 26}{space 2} .0388148{col 37}{space 1}   -0.35{col 46}{space 3}0.723{col 54}{space 4}-.0898507{col 67}{space 3} .0623005
{txt}{space 10}wl {c |}{col 14}{res}{space 2}  .385134{col 26}{space 2} .0417758{col 37}{space 1}    9.22{col 46}{space 3}0.000{col 54}{space 4} .3032549{col 67}{space 3}  .467013
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}-.1304014{col 26}{space 2} .0341045{col 37}{space 1}   -3.82{col 46}{space 3}0.000{col 54}{space 4} -.197245{col 67}{space 3}-.0635578
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1763231{col 26}{space 2} .0367062{col 37}{space 1}    4.80{col 46}{space 3}0.000{col 54}{space 4} .1043802{col 67}{space 3} .2482659
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       289
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0637114{col 26}{space 2} .0183488{col 37}{space 1}    3.47{col 46}{space 3}0.001{col 54}{space 4} .0277483{col 67}{space 3} .0996744
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}  .385134{col 26}{space 2} .0341788{col 37}{space 1}   11.27{col 46}{space 3}0.000{col 54}{space 4} .3181448{col 67}{space 3} .4521232
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       289
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .06371137{col 27}{space 2} .0009795{col 38}{space 2} .01834884{col 51}{space 2}  .031982{col 63}{space 1} .1041183{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0321082{col 63}{space 1} .1041183{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .38513397{col 27}{space 2} -.000693{col 38}{space 2} .03417879{col 51}{space 2} .3167039{col 63}{space 1} .4558669{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3178816{col 63}{space 1} .4567542{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. timer off 3
{txt}
{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       289
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2}-.0471183{col 26}{space 2} .0151952{col 37}{space 1}   -3.10{col 46}{space 3}0.002{col 54}{space 4}-.0769003{col 67}{space 3}-.0173363
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}-.0137751{col 26}{space 2}  .038815{col 37}{space 1}   -0.35{col 46}{space 3}0.723{col 54}{space 4}-.0898512{col 67}{space 3}  .062301
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       289
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2}-.04711834{col 27}{space 2}-.0002968{col 38}{space 2} .01519518{col 51}{space 2}-.0817559{col 63}{space 1}-.0220819{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0835072{col 63}{space 1}-.0232648{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.01377511{col 27}{space 2} .0003033{col 38}{space 2} .03881503{col 51}{space 2}-.0913479{col 63}{space 1}  .061665{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0900733{col 63}{space 1} .0630659{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       284
                                                {txt}F(3, 280)         =  {res}     0.10
                                                {txt}Prob > F          = {res}    0.9581
                                                {txt}R-squared         = {res}    0.0010
                                                {txt}Root MSE          =    {res} .47494

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}-.0113736{col 26}{space 2} .0282976{col 37}{space 1}   -0.40{col 46}{space 3}0.688{col 54}{space 4}-.0670768{col 67}{space 3} .0443295
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.0346498{col 26}{space 2} .0965399{col 37}{space 1}   -0.36{col 46}{space 3}0.720{col 54}{space 4}-.2246859{col 67}{space 3} .1553864
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0105343{col 26}{space 2}  .106451{col 37}{space 1}   -0.10{col 46}{space 3}0.921{col 54}{space 4}-.2200802{col 67}{space 3} .1990115
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3704406{col 26}{space 2} .0842796{col 37}{space 1}    4.40{col 46}{space 3}0.000{col 54}{space 4} .2045385{col 67}{space 3} .5363426
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e26.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 14:21:02
{txt}{.-}
{smcl}
{txt}{sf}{ul off}